package com.miyake.server.servlet;

import java.io.BufferedInputStream;
import com.miyake.server.DsData;

public class StoreOriginal {
	private byte[] ret;
	public StoreOriginal(DsData data, BufferedInputStream bis, String key, String name) {
		data.setOriginal(ret = getByte(bis), name);
	}

	private byte[] getByte(BufferedInputStream bis) {
		return new ConvertStreamToByte().convert(bis);
	}
	
	public byte[] getByte() {
		return ret;
	}
}
